/*
 * @Description:
 * @Author:  huangshuai
 * @Date: 2023-11-02 16:16:23
 * @LastEditTime: 2023-11-02 17:52:11
 * @LastEditors: huangshuai
 */
import axios from "@/utils/request";

//查询公告
export function listNoticeInfo(page: number = 1, pageSize: number = 10) {
  return axios.service({
    url: "/notice/listNoticeInfo",
    method: "post",
    data: { page, pageSize },
  });
}
//删除公告
export function deleteNotice(NoticeId: number | string) {
  return axios.service({
    url: `/notice/deleteNotice/${NoticeId}`,
    method: "get",
  });
}
//录入公告
export function addNoticeInfo(data: any) {
  return axios.service({
    url: "/notice/addNoticeInfo",
    method: "post",
    data,
  });
}
export function updateNoticeInfo(data: any) {
  return axios.service({
    url: "/notice/updateNoticeInfo",
    method: "put",
    data,
  });
}
